<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for components\carousel\dx-carousel.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../prettify.css" />
    <link rel="stylesheet" href="../../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../../index.html">all files</a> / <a href="index.html">components/carousel/</a> dx-carousel.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/58</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/26</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/5</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/56</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
	&lt;div  
		class="dx-carousel" 
		:style="{height : height, width : width}" 
		@mouseenter.stop="handleMouseEnter()" 
		@mouseleave.stop="handleMouseLeave()" 
	&gt;
	    &lt;!-- pre轮播容器 --&gt;
		&lt;div  
		 	:class="{'dx-carousel--animate': enableTransition}" 
		 	class="dx-carousel__content"
		 	:style="[{transform: `translateX(${ pre.translateX })`}, itemsSize]" 
		&gt;
			&lt;div 
				v-if="background"
				class="dx-carousel__content--inner dx-carousel__content--inner--pre"
				:style="{ background: `url(${pre.imgSrc})`}"
			&gt;&lt;/div&gt;
			&lt;img v-else :src="pre.imgSrc"/&gt;
		&lt;/div&gt;
		  &lt;!-- mid轮播容器 --&gt;
		&lt;div   
			:class="{'dx-carousel--animate': enableTransition}" 
			class="dx-carousel__content" 
			:style="[{transform: `translateX(${ mid.translateX })`}, itemsSize]"
		&gt;
			&lt;div 
				v-if="background"
				class="dx-carousel__content--inner dx-carousel__content--inner--mid"
				:style="{ background: `url(${mid.imgSrc})`}"&gt;
			&lt;/div&gt;
		  	&lt;img v-else :src="mid.imgSrc"/&gt;
		&lt;/div&gt;
		&lt;!-- next轮播容器 --&gt;
		&lt;div  
			:class="{'dx-carousel--animate': enableTransition}" 
			class="dx-carousel__content"
			:style="[{transform: `translateX(${ next.translateX })`}, itemsSize]"
		&gt;
			&lt;div 
				v-if="background"
				class="dx-carousel__content--inner dx-carousel__content--inner--next"
				:style="{ background: `url(${next.imgSrc})`}"&gt;
			&lt;/div&gt;
		  	&lt;img v-else :src="next.imgSrc"/&gt;
		&lt;/div&gt;
		&lt;!-- 向前向后按钮 --&gt;
		&lt;button 
			v-show="hover" 
			class="dx-carousel-left--btn  dx-carousel--btn" 
			@click="nextClick()"
		&gt; 
			&lt;i class="icon iconfont dx-prev"&gt;&lt;/i&gt;
			&lt;/i&gt; 
		&lt;/button&gt;
		&lt;button 
			v-show="hover" 
			class="dx-carousel--right-btn  dx-carousel--btn" 
			@click="preClick()"
			&gt; 
				&lt;i class="icon iconfont dx-next"&gt;&lt;/i&gt;
		&lt;/button&gt;
		&lt;!-- 轮播图片指示器 --&gt;
		&lt;div&gt;
		  	&lt;ul class="dx-carousel__labels clearfix"&gt;
		  		&lt;li 
		  			v-for="(item,index) in imageNum" 
		  			:key="index" 
		  			class="dx-carousel__labels--item" 
		  			@click="btnClick(index)" 
		  		&gt;
		  			&lt;button 
		  				:class="{'is-active':index === activeInd}" 
		  				class="dx-carousel__labels--item-btn"
		  			&gt;
					&lt;/button&gt;
		  		&lt;/li&gt;
		  	&lt;/ul&gt;
		&lt;/div&gt;
	 &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
	export default {
		name: 'DxCarousel',
		componentName: 'DxCarousel',
		props: {
			background: Boolean,
			height: String,
			width: String,
			imageUrls: {
				type: Array, // 轮播图片的地址数组数据
				default: function()<span class="fstat-no" title="function not covered" > {</span>
<span class="cstat-no" title="statement not covered" >					return []</span>
				}
			},
			timeInterval: {
				type: Number,
				default: 3000
			}
		},
		data() {
<span class="cstat-no" title="statement not covered" >			return {</span>
				activeInd: 0, // 指示活动图片的index
				// pre容器的对象数据
				pre: {
					translateX: '-100%',
					imgSrc: ''
				},
				mid: {
					translateX: '0',
					imgSrc: ''
				},
				next: {
					translateX: '100%',
					imgSrc: ''
				},
				enableTransition: true, // 是否暂时关闭动画
				timer: null, // 定时器
				hover: false, // 鼠标移动到容器元素，是否显示点击按钮
				animating: false// 标志是否处于动画中,主要用来限制点击的次数
			}
		},
		computed: {
			/* 设置轮播图片的大小 */
			itemsSize() {
<span class="cstat-no" title="statement not covered" >				return {</span>
					height: this.height,
					width: this.width
				}
			},
			imageNum() {
<span class="cstat-no" title="statement not covered" >				return this.imageUrls.length</span>
			}
		},
		mounted() {
			// 初始化轮播图片地址
<span class="cstat-no" title="statement not covered" >			this.showImg(this.imageNum - 1, this.activeInd, this.activeInd + 1)</span>
<span class="cstat-no" title="statement not covered" >			this.timer = setInterval(() =&gt;<span class="fstat-no" title="function not covered" > {<span class="cstat-no" title="statement not covered" > this.translate('left')</span> }</span>, this.timeInterval)</span>
		},
		methods: {
			/* 赋值相应的图片url */
			showImg(preInd, midInd, nextInd) {
<span class="cstat-no" title="statement not covered" >				this.pre.imgSrc = this.imageUrls[preInd]</span>
<span class="cstat-no" title="statement not covered" >				this.mid.imgSrc = this.imageUrls[midInd]</span>
<span class="cstat-no" title="statement not covered" >				this.next.imgSrc = this.imageUrls[nextInd]</span>
			},
			/* 计算轮播图片的位置 */
			calculPosition() {
<span class="cstat-no" title="statement not covered" >				if (this.activeInd === this.imageNum - 1) {</span>
<span class="cstat-no" title="statement not covered" >					this.showImg(this.activeInd - 1, this.activeInd, 0)</span>
				} else<span class="cstat-no" title="statement not covered" > if (this.activeInd === 0) {</span>
<span class="cstat-no" title="statement not covered" >					this.showImg(this.imageNum - 1, this.activeInd, this.activeInd + 1)</span>
				} else {
<span class="cstat-no" title="statement not covered" >					this.showImg(this.activeInd - 1, this.activeInd, this.activeInd + 1)</span>
				}
<span class="cstat-no" title="statement not covered" >				this.animating = false</span>
			},
			/* 处理鼠标移入事件 */
			handleMouseEnter() {
<span class="cstat-no" title="statement not covered" >				this.hover = true</span>
<span class="cstat-no" title="statement not covered" >				this.pauseTimer()</span>
			},
				/* 处理鼠标移出事件 */
			handleMouseLeave() {
<span class="cstat-no" title="statement not covered" >				this.hover = false</span>
<span class="cstat-no" title="statement not covered" >				this.startTimer()</span>
			},
			startTimer() {
<span class="cstat-no" title="statement not covered" >				this.timer = setInterval(() =&gt;<span class="fstat-no" title="function not covered" > {<span class="cstat-no" title="statement not covered" > this.translate('left')</span> }</span>, 3000)</span>
			},
			pauseTimer() {
<span class="cstat-no" title="statement not covered" >				clearTimeout(this.timer)</span>
<span class="cstat-no" title="statement not covered" >				this.timer = null</span>
			},
			preClick() {
<span class="cstat-no" title="statement not covered" >				if (!this.animating) {</span>
<span class="cstat-no" title="statement not covered" >					this.translate('left')</span>
				}
			},
			nextClick() {
<span class="cstat-no" title="statement not covered" >				if (!this.animating) {</span>
<span class="cstat-no" title="statement not covered" >					this.translate('right')</span>
				}
			},
			translate(dir, activeInd) {
				// 启动动画
<span class="cstat-no" title="statement not covered" >				this.enableTransition = true</span>
<span class="cstat-no" title="statement not covered" >				this.animating = true</span>
<span class="cstat-no" title="statement not covered" >				if (dir === 'left') {</span>
<span class="cstat-no" title="statement not covered" >					this.pre.translateX = parseInt(this.pre.translateX) - 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					this.mid.translateX = parseInt(this.mid.translateX) - 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					this.next.translateX = parseInt(this.next.translateX) - 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					setTimeout(() =&gt;<span class="fstat-no" title="function not covered" > {</span></span>
							// 暂时关闭动画移动
<span class="cstat-no" title="statement not covered" >							this.enableTransition = false</span>
							// 让代码pre,mid,next元素复原
<span class="cstat-no" title="statement not covered" >							this.pre.translateX = this.mid.translateX</span>
<span class="cstat-no" title="statement not covered" >							this.mid.translateX = this.next.translateX</span>
<span class="cstat-no" title="statement not covered" >							this.next.translateX = '100%'</span>
<span class="cstat-no" title="statement not covered" >							this.activeInd = (activeInd || activeInd === 0) ? activeInd : (this.activeInd + 1) % this.imageNum</span>
<span class="cstat-no" title="statement not covered" >							this.calculPosition()</span>
						}, 500)
				} else<span class="cstat-no" title="statement not covered" > if (dir === 'right') {</span>
<span class="cstat-no" title="statement not covered" >					this.pre.translateX = parseInt(this.pre.translateX) + 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					this.mid.translateX = parseInt(this.mid.translateX) + 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					this.next.translateX = parseInt(this.next.translateX) + 100 + '%'</span>
<span class="cstat-no" title="statement not covered" >					setTimeout(() =&gt;<span class="fstat-no" title="function not covered" > {</span></span>
<span class="cstat-no" title="statement not covered" >						this.enableTransition = false</span>
<span class="cstat-no" title="statement not covered" >						this.next.translateX = this.mid.translateX</span>
<span class="cstat-no" title="statement not covered" >						this.mid.translateX = this.pre.translateX</span>
<span class="cstat-no" title="statement not covered" >						this.pre.translateX = '-100%'</span>
<span class="cstat-no" title="statement not covered" >						this.activeInd = (activeInd || activeInd === 0) ? activeInd : (this.activeInd + this.imageNum - 1) % this.imageNum</span>
<span class="cstat-no" title="statement not covered" >						this.calculPosition()</span>
					}, 500)
				}
			},
			/* 指示器点击事件处理 */
			btnClick(index) {
<span class="cstat-no" title="statement not covered" >				if (index !== this.activeInd &amp;&amp; !this.animating) {</span>
					// 判断指示的位置与当前active图片的index
<span class="cstat-no" title="statement not covered" >					if (index &gt; this.activeInd) {</span>
<span class="cstat-no" title="statement not covered" >	                   this.next.imgSrc = this.imageUrls[index]</span>
<span class="cstat-no" title="statement not covered" >	                   this.translate('left', index)</span>
					} else {
<span class="cstat-no" title="statement not covered" >						this.pre.imgSrc = this.imageUrls[index]</span>
<span class="cstat-no" title="statement not covered" >						this.translate('right', index)</span>
					}
				}
			}
		}
	}
&lt;/script&gt;
&lt;style lang="scss"&gt;
	@include B(carousel) {
		background-color: $--dx-carousel-background-color;
		position: relative;
	    overflow: hidden;
	    @include M(animate) {
			transition:0.5s;
		}
&nbsp;
		@include E(content) {
			position:absolute;
			@include M(inner) {
				width: 100%;
				height: 100%;
			}
&nbsp;
			@include M(pre) {
				background-color: #99a9bf;
			}
&nbsp;
			@include M(mid) {
				background-color: #d3dce6;
			}
&nbsp;
			@include M(next) {
				background-color: #666666;
			}
		}
&nbsp;
		@include M(btn) {
			width: 4rem;
			height: 4rem;
			position: absolute;
		    top: 50%;
			transform: translateY(-50%);
			border: none;
		    outline: none;
		    padding: 0;
		    margin: 0;
		    cursor: pointer;
		    transition: .1s;
		    border-radius: 50%;
		    background-color: $--dx-carousel-btn-background-color;
		    color: $--dx-carousel-btn-color;
		    z-index: 0;
		    text-align: center;
		    font-size: 1.2rem;
		}
&nbsp;
		@include M(left-btn) {
			left: 10%;
		}
&nbsp;
		@include M(right-btn) {
			 right: 10%;
		}
&nbsp;
		@include E(labels) {
			position: absolute;
			bottom: 10%;
			left: 50%;
			transform: translateX(-50%);
			/* background-color: $--dx-carousel-labels-background-color; */
			opacity: $--dx-carousel-labels-opacity;
			border-radius: 0.8rem;
&nbsp;
			@include M(item) {
				float: left;
				margin: 0 1rem;
			}
&nbsp;
			@include M(item-btn) {
				width: $--dx-carousel-item-btn-width;
				height: $--dx-carousel-item-btn-height;
				display: block;
			    border-radius: 50%;
			    background-color: $--dx-carousel-item-btn-background-color;
			    border: none;
			    outline: none;
			    padding: 0;
			    margin: 0;
			    cursor: pointer;
			    transition: .1s;
&nbsp;
			    @include when(active) {
					background-color: $--dx-carousel-item-btn-background-color-active;
				}
			}
		}
	}
&lt;/style&gt;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
    
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Feb 24 2019 15:08:50 GMT+0800 (中国标准时间)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>
